package org.xzx.shop_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import lombok.Data;
import org.springframework.stereotype.Component;

@Component
@Data
@TableName("shop_comments")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;
    @Column(name = "goods_id")
    private int goodsId;
    @Column(name = "member_id")
    private int memberId;
    @Column(name = "created_time")
    private int createdTime;

    private String content;

    @Column(name = "desc_score")
    private int descScore;

    @Column(name = "logic_score")
    private int logicScore;

    @Column(name = "shopper_score")
    private int shopperScore;

    private String img;

    private int status;



    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getDescScore() {
        return descScore;
    }

    public void setDescScore(int descScore) {
        this.descScore = descScore;
    }

    public int getLogicScore() {
        return logicScore;
    }

    public void setLogicScore(int logicScore) {
        this.logicScore = logicScore;
    }

    public int getShopperScore() {
        return shopperScore;
    }

    public void setShopperScore(int shopperScore) {
        this.shopperScore = shopperScore;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public int getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(int createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", memberId=" + memberId +
                ", createdTime=" + createdTime +
                ", content='" + content + '\'' +
                ", descScore=" + descScore +
                ", logicScore=" + logicScore +
                ", shopperScore=" + shopperScore +
                ", img='" + img + '\'' +
                ", status=" + status +
                '}';
    }
}
